# from langchain.agents import initialize_agent, AgentType
#
# from common.llm_builder import llm, calculate_calc_tool
#
# # 1-初始化智能体(貌似initialize_agent接口已经废弃)
# agent = initialize_agent(
#     tools=calculate_calc_tool,
#     llm=llm,
#     agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
#     verbose=True
# )
#
# # 2-智能体问答
# llm_response = agent.invoke("100+15=?")
#
# # 3-打印响应结果
# print(llm_response)
# print(llm_response["output"])
